<template>
  <view class="container">
    <view class="web_view">
      <web-view src="/hybrid/html/pdf.html" @message="onMessage"></web-view>
    </view>
  </view>
</template>

<script>
import useStore from "@/store/index.js";
import baseURL from "@/config/baseURL.js";
export default {
  components: {},
  data() {
    return {
      baseURL,
    };
  },
  onMounted() {
    console.log("onMounted");
  },
  methods: {
    submit() {},
    onMessage(e) {
      // 网页发送给应用（app, 小程序，h5, 可以称之为父组件）的消息
      // 接收消息
      console.log(e);
    }
  },
};
</script>

<style lang="scss" scoped>
.container {}
</style>
